package com.gdk.ksoft.assembly.utils;

import android.graphics.Color;

import java.util.Random;

/**
 * Created by Mrper on 2014/11/25.
 */
public class ColorUtils {

    /**
     * 颜色数组
     */
    public static final int[] COLORS= {
            Color.BLACK,
            Color.BLUE,
            Color.CYAN,
            Color.DKGRAY,
            Color.LTGRAY,
            Color.RED,
            Color.MAGENTA,
            Color.YELLOW,
            Color.GREEN,
            Color.GRAY,
            Color.parseColor("#800011ff"),
            Color.parseColor("#55aaffff"),
            Color.parseColor("#ea0900ff")
    };

    /**
     * 随机获取颜色
     * @return
     */
    public static int GetColor(){
        return COLORS[new Random().nextInt(COLORS.length)];
    }

}
